<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>撤销弹窗</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <link rel="stylesheet" href="./css/style.css">
</head>

<body>

<div class="x-body">
    <div class="leave-top tl5">该申请已批准，如需撤销，请填写撤销理由</div>
    <form action="" class="layui-form ">
        <div >
            <span class="left tl2 ft14">撤销理由：</span>
            <div class="left sd2">
                            <textarea name="" required lay-verify="required"
                                      class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item tt1" >
            <button class="layui-btn ok" lay-filter="add" lay-submit="" style="margin-left:100px" onclick="member_del(this,'要删除的id')">
                提交
            </button>
            <button class="layui-btn layui-btn-primary" lay-filter="add" lay-submit="" style="margin-left:100px">
                取消
            </button>
        </div>
    </form>
</div>

<script type="text/javascript" src="./js/jquery-3.2.1.min.js"></script>
<script src="./lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="./js/xadmin.js"></script>
<script>
    $(".ok").click(function () {
        layer.msg('已提交!', {icon: 1, time: 2000});
    })
    layui.use('laydate', function () {
        var laydate = layui.laydate;


    });
    function member_del(obj, id) {
        layer.confirm('确认要删除吗？', {title: '确认删除'}, function (index) {
            //发异步删除数据
            $(obj).parents("tr").remove();
            layer.msg('已删除!', {icon: 1, time: 1000});
        });
    }

</script>

</body>

</html>